<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<ul>
			<li>11</li>
			<li>22</li>
			<li>33</li>
			<li>44</li>
		</ul>


		<table border="" cellspacing="" cellpadding="">
			<thead>
				<tr>
					<th>id</th>
					<th>姓名</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>1</td>
					<td>lc</td>
					<td><input type="button" name="" id="" value="删除" class="delete" /></td>
				</tr>
				<tr>
					<td>1</td>
					<td>lc</td>
					<td><input type="button" name="" id="" value="删除" class="delete" /></td>
				</tr>
				<tr>
					<td>1</td>
					<td>lc</td>
					<td><input type="button" name="" id="" value="删除" class="delete" /></td>
				</tr>
				<tr>
					<td>1</td>
					<td>lc</td>
					<td><input type="button" name="" id="" value="删除" class="delete" /></td>
				</tr>
			</tbody>


		</table>
		<script type="text/javascript" src="../static/js/jquery-3.6.0.min.js">

		</script>
		<script type="text/javascript">
			$(function() { //当页面的框架加载完毕之后执行这个函数



				$('li').click(function() {
					$(this).remove()
				})
				$('.delete').click(function() {

					$(this).parent().parent().remove()
				})


			})
		</script>
	</body>
</html>
